<%--
  Created by IntelliJ IDEA.
  User: ch-hui
  Date: 16/2/10
  Time: 下午2:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/common/taglibs.jsp" %>

<html>
<head>
    <title>生产单列表</title>
    <style>
        .ibox-tools{
            margin-right: 25px;;
        }
    </style>
</head>
<body>
<div class="row">
    <div class="col-lg-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>生产单
                    <small>列表</small>
                </h5>
                <div class="ibox-tools">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                    <a class="close-link">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>

            <div class="ibox-content">
                <div class="ibox-tools">
                    <input id="hello" class="laydate-icon">
                </div>

                <%--<div class="ibox-tools">--%>
                <%--<button class="btn btn-primary" type="button"><i class="fa fa-plus"></i>&nbsp;新增配方</button>--%>
                <%--</div>--%>

                <table class="table table-striped table-bordered table-hover dataTables-example">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>名称</th>
                        <th>生产日期</th>
                        <th>生产总量（kg）</th>
                        <th>总成本</th>
                        <th>操作</th>
                    </tr>
                    </thead>

                    <tbody>
                    <c:forEach items="${orders}" var="order" varStatus="scope">
                        <tr>
                            <td>${scope.count}</td>
                            <td>
                                <a href="${BASE}/order/edit/${order.id}">${order.name}</a>
                            </td>
                            <td>${order.orderTime}</td>
                            <td>${order.totalAmount}</td>
                            <td><fmt:formatNumber type="currency"
                                                  var="money">${order.totalCost}</fmt:formatNumber><c:out
                                    value="${money}"></c:out></td>
                            <td>
                                <a href="${BASE}/recipe/test/report">打印</a>&nbsp;&nbsp;
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="${BASE}/www/script/order/order.js"></script>
<script src="${BASE}/www/hui/js/plugins/laydate/laydate.js"></script>

</body>
</html>
